//
//  SettingViewController.swift
//  FearfulNotification
//
//  Created by 筱鹏 on 2019/5/30.
//  Copyright © 2019 筱鹏. All rights reserved.
//

import UIKit

class SettingViewController: BaseViewController {

    var settingImplement: SettingTableViewImplement!
    
    override func viewDidLoad() {
        super.viewDidLoad()
        self.navigationItem.title = "设置"
        // Do any additional setup after loading the view.
        let tableView = UITableView(frame: view.bounds, style: .grouped)
        tableView.backgroundColor = Theme.color.background
        self.view.addSubview(tableView)
        settingImplement = SettingTableViewImplement(tableView)
        settingImplement.setupViewController(self)
    }
}

extension SettingViewController {
    class func show(from viewController: BaseViewController) {
        let settingVC = SettingViewController()
        let baseNavC = BaseNavigationController(rootViewController: settingVC)
        viewController.present(baseNavC, animated: true, completion: nil)
    }
}
